<?php
/**
 * Created by PhpStorm.
 * User: Levin
 * Date: 2018/3/15
 * Time: 下午3:34
 */
namespace plugins\payment\wechat;

class WechatConfig
{
    //private static $appid = "wxecc4a9c96bce4b55";
    private static $appid = "wxb257a3c44afd51f5";
    //private static $app_secret = "63c1208cd5f50d2a29f552a8d853696c";
    private static $app_secret = "90a94531eb1f83dc6a493b77a67c9485";
    private static $mch_id = "1250518101"; //商户号
    private static $make_sign = "13aad12dasde23123asdf1231231awer";//支付的签名，32位签名，微信商户后台设置
    private static $notify_url='http://yc.910ct.cn/pay_notify.php';// 回调地址，需包含http://

    public static function fetchConfig($option = null)
    {
        if (is_null($option)) {
            return [
                "appid" => self::$appid,
                "app_secret" => self::$app_secret,
                "mch_id" => self::$mch_id,
                "make_sign" => self::$make_sign,
                "notify_url" => self::$notify_url,
            ];
        } else {
            return self::$$option;
        }
    }
}